<?php
    include('../init.php');
    $pid = $_REQUEST['pid'];
    $result = $db->query('DELETE FROM hs_cart WHERE p_id='.$pid.' AND m_id='.$_SESSION['m_id']);
    $data['status'] = 'success';
    echo json_encode($data);
?>